import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

// const f = require.context('../views', false, /\.vue$/)
// console.log(f.keys())

export default new VueRouter({
  routes: [
    {
      path: '/sgmn',
      name: '帅哥美女走一走',
      component: () => import('@/views/sgmn'),
    },
    {
      path: '/jjjj',
      name: '加加减减',
      component: () => import('@/views/jjjj'),
    },
    {
      path: '/gwc',
      name: '购物车',
      component: () => import('@/views/gwc'),
    },
    {
      path: '/gsgd',
      name: '逛水果店',
      component: () => import('@/views/gsgd'),
    },
    {
      path: '/xzxhd',
      name: '选择喜欢的',
      component: () => import('@/views/xzxhd'),
    },
    {
      path: '/mdslx',
      name: '买点书练习',
      component: () => import('@/views/mdslx'),
    },
    {
      path: '/xzszqh',
      name: '选择数字求和',
      component: () => import('@/views/xzszqh'),
    },
    {
      path: '/dhqhxg',
      name: '导航切换效果',
      component: () => import('@/views/dhqhxg'),
    },
    {
      path: '/xsxxgl',
      name: '学生信息管理',
      component: () => import('@/views/xsxxgl'),
    },
    {
      path: '/xhxggm',
      name: '喜欢小狗狗吗',
      component: () => import('@/views/xhxggm'),
    },
    {
      path: '/djwxbs',
      name: '点击文字变色',
      component: () => import('@/views/djwzbs'),
    },
    {
      path: '/mgl',
      name: '卖狗啦',
      component: () => import('@/views/mgl'),
    },
    {
      path: '/xzxhdg',
      name: '选择喜欢的狗',
      component: () => import('@/views/xzxhdg'),
    },
    {
      path: '/mwl',
      name: '卖完了',
      component: () => import('@/views/mwl'),
    },
    {
      path: '/mdhcd',
      name: '买点好吃的',
      component: () => import('@/views/mdhcd'),
    },
    {
      path: '/gwc2',
      name: '购物车2',
      component: () => import('@/views/gwc2'),
    },
    {
      path: '/zsxt',
      name: '做数学题',
      component: () => import('@/views/zsxt'),
    },
  ],
})
